package zunge.twidel.typo;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map.Entry;

import zunge.tool.db.sql.DbConn;

public class Main_Textify {
	static String farHost = "brutus.isr.cs.cmu.edu";
	static String farDb = "oneweek";
	static String farUser = "bliu1";
	static String farPswd = "87Clear#";
	static DbConn farConn;
	
	static final int K = 3; //search distance
	
	public static void main(String args[]){
		try{
			farConn = new DbConn(farHost, farDb, farUser, farPswd);

			String query = "select * from typorepost";
			ResultSet rs = farConn.executeQuery(query);
			while(rs.next()){
				long tweetId = rs.getLong("tweetId");
				
			}
			
			farConn.close();
		}catch(Exception e){e.printStackTrace();}
	}

}
